import {
    observable,
    makeObservable,
    action,
    runInAction
} from 'mobx';
import Unit from '../unit/';

class Store {
    constructor(){
        makeObservable(this);
    }
    @observable pddList = [];
    @observable name = '测试';

    @action
    getPdd = (ajaxCfg) =>{
        Unit.getApi(ajaxCfg).then((res)=>{
            console.log(res.data)
            this.pddList = res.data.data;
        })
    }

}






export default Store;
